#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2021/4/19 下午2:32
# @Author  : fugang_le
# @Software: PyCharm


# 获取list中出现次数最多的元素
a = [1, 2, 3, 4, 2, 3, 2]
maxlabel = max(a, key=a.count)
print(maxlabel)
